class Restaurant:
    def __init__(self,restaurant_name,cuisine_type):
        """初始化类的属性"""
        self.restaurant_name = restaurant_name
        self.cuisine_type = cuisine_type
        self.number_served = 0

    def describe_restaurant(self):
        print("\n餐馆信息:")
        print(f"\t餐馆名称:{self.restaurant_name}")
        print(f"\t主卖饭菜:{self.cuisine_type}")

    def open_restaurant(self):
        print("\n本餐馆正式开业啦,欢迎光临")

    def set_number_served(self, nums):
        self.number_served = nums

    def increment_number_served(self, nums):
        self.number_served += nums

# restaurant1 = Restaurant("悠悠川菜","家常菜")
# print(f"有{restaurant1.number_served}人在此处吃过饭")
# restaurant1.set_number_served(63)
# print(f"有{restaurant1.number_served}人在此处吃过饭")
# restaurant1.increment_number_served(17)
# print(f"有{restaurant1.number_served}人在这里吃饭")


class IceCreamStand(Restaurant):
    """简单模拟冰淇凌小店"""
    def __init__(self,restaurant_name,cuisine_type,*toppings):
        super().__init__(restaurant_name,cuisine_type)
        self.toppings = toppings

    def print_IceCream(self):
        for ice_cream in self.toppings:
            print(f"我们有{ice_cream}口味的冰淇凌")


ice = IceCreamStand("好美味","冰淇凌","巧克力","奶油","香芋")
ice.print_IceCream()
